import req from "@/utils/request.js";
// 获取首页门店列表
export const getShopList = data => {
	return req({
		url: "store/list",
		method: "get",
		data
	})
}
// 根据定位获取用户当前城市
export const getLocationAddr = data => {
	return req({
		url: "getCity",
		method: "post",
		data
	})
}
/* 基本配置 */
export const baseConfig = data => {
	return req({
		url: 'base_config',
		method: 'get',
		data
	})
}
// 获取7天日期
export const sevenDay = () => {
	return req({
		url: "store/worker/sevenDay",
		method: "get"
	})
}
// 获取约课类型
export const courseType = () => {
	return req({
		url: "store/worker/reservationType",
		method: "get"
	})
}
// 获取门店预约列表
export const getReservation = data => {
	return req({
		url: "store/worker/reservation_list",
		method: "get",
		data
	})
}
// 获取门店详情
export const getStoreDetail = data => {
	return req({
		url: "store/detail",
		method: "GET",
		data
	})
}
// 获取门店员工列表
export const getWorkerList= data => {
	return req({
		url: "store/worker/list",
		method: "GET",
		data
	})
}
// 获取权限配置门店列表
export const adminShopList = () => {
	return req({
		url: "dashboard/store/column",
		method: "get"
	})
}
// 用户查询页面列表
export const userList = data => {
	return req({
		url: "dashboard/userList",
		method: "get",
		data
	})
}
// 转移用户门店分组
export const addGroupingUser = data => {
	return req({
		url: `dashboard/addManageUser`,
		method: "POST",
		data
	})
}